/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.faytechcc.csc251.data;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

/**
 *
 * @author Joshua
 */
public class Parse {
    
    public static String[] parse(String fileName) throws IOException
    {
        File file = new File("csv//" + fileName);
        Scanner inFile = new Scanner(file);
        String line;
        String[] items = {};
        
        while(inFile.hasNext())
        {
            line = inFile.nextLine();
            items = line.split(",");
        }
        
        return items;
    }
}
